import service from "@/utils/request";

// 全勤列表
export function guizeliebiao(payload ={}){
    return service.get("/rule",{params:payload})
}

// 添加
export function xinzen(payload ={}){
    return service.post("/rule",payload)
}
 

// 改变
export function gaibianzhuangtai(payload:any ={}){
    return service.patch("/rule/"+payload.id,payload)
}

// 删除
export function shanchu(payload:any ={}){
    return service.delete("/rule/"+payload.id,payload)
}

// 加班
export function jiabanliebiao(payload ={}){
    return service.get("/rules",{params:payload})
}

// 加班新增
export function jiabanxinzen(payload ={}){
    return service.post("/rules",payload)
}
 
// 加班改变
export function jiabangaibianzhuangtai(payload:any ={}){
    return service.patch("/rules/"+payload.id,payload)
}

// 加班删除
export function jiabanshanchu(payload:any ={}){
    return service.delete("/rules/"+payload.id,payload)
}




// 补卡
export function bukaliebiao(payload ={}){
    return service.get("/ruless",{params:payload})
}

// 补卡新增
export function bukaxinzen(payload ={}){
    return service.post("/ruless",payload)
}
 
// 补卡改变
export function bukagaibianzhuangtai(payload:any ={}){
    return service.patch("/ruless/"+payload.id,payload)
}

// 补卡删除
export function bukashanchu(payload:any ={}){
    return service.delete("/ruless/"+payload.id,payload)
}




// 免勤
export function mianqingliebiao(payload ={}){
    return service.get("/mianqing",{params:payload})
}

// 免勤新增
export function mianqingxinzen(payload ={}){
    return service.post("/mianqing",payload)
}
 
// 免勤改变
export function mianqinggaibianzhuangtai(payload:any ={}){
    return service.patch("/mianqing/"+payload.id,payload)
}

// 免勤删除
export function mianqingshanchu(payload:any ={}){
    return service.delete("/mianqing/"+payload.id,payload)
}


// 外勤控制
export function waiqinggaibianzhuangtai(payload:any ={}){
    return service.patch("/waiqing/"+payload.id,payload)
}

// 外勤列表
export function waiqingliebiao(payload ={}){
    return service.get("/waiqing",{params:payload})
}


